| 1. | Tab character as the field separator and (制表符)作为字段分隔符,使用 |
| 2. | The difference between these two methods has to do with how we set the field separator 这两个方法的差别在于如何设置字段分隔符。 |
| 3. | Specifies a set of fields and field separators , which is used to create a string to represent a contact item 指定一组区域及区域分隔符,用来创建代表通讯录记录的一个字串。 |
| 4. | A delimiter , a character that separates units of data in storage or transmission , ( “ a file separator ” , “ a field separator ” ) 一种定界符,即在存储和传输中分隔数据单元的一种字符(文件分隔符、字段分隔符) 。 |
| 5. | It s generally best to set the field separator inside the script itself , simply because it means you have one less command line argument to remember to type 假设我们编写了一个脚本,它将地址列表转换成每个记录一行,且用tab定界的格式,以便导入电子表格。 |
| 6. | In this script , the field separator is specified within the code itself by setting the fs variable , while our previous example set fs by passing the - f " : " option to awk on the command line 如果想使输出的间隔翻倍,可以将ors设置成" n n " 。或者,如果想要用单个空格分隔记录(而不换行) ,将ors设置成" 。 |
| 7. | Because the begin block is evaluated before awk starts processing the input file , it s an excellent place to initialize the fs field separator variable , print a heading , or initialize other global variables that you ll reference later in the program Awk还有" do . while "循环,它在代码块结尾处对条件求值,而不象标准while循环那样在开始处求值。它类似于其它语言中的" repeat . until "循环。 |